<?php

abstract class UE_Controller_Abstract extends UE_Object {
	public $app   = null;
	public $ctl   = null;
	public $act   = null;
	public $id    = null;
	
	protected $appDir = '';
	
	/**
	 * 来访者地区设置
	 * 
	 * @var string
	 */
	protected $_locale = 'zh_CN';
	
	public function setApp($app) {
		$_GET['app'] = $app;
		$this->app = $app;
		return $this;		
	}
	
	public function setCtl($ctl) {
		$_GET['ctl'] = $ctl;
		$this->ctl = $ctl;
		return $this;		
	}
	
	public function setAct($act) {
		$_GET['act'] = $act;
		$this->act = $act;
		return $this;		
	}
	
	public function setId($id) {
		$_GET['id'] = $id;
		$this->id = $id;
		return $this;		
	}
	
	abstract public function init();
}